/* ==========================================================================
   ANELCO PRODUCTS
   Listing Item + Product View
   Clean / Consolidated Version
   ========================================================================== */

   :root {
    --anelco-blue: #06429e;
    --anelco-blue-dark: #032f78;
    --anelco-red: #f32231;
    --anelco-dark: #172033;
    --anelco-text: #656d7a;
    --anelco-muted: #969daa;
    --anelco-border: #e6e9ee;
    --anelco-soft: #f7f8fa;
    --anelco-white: #ffffff;
}


/* ==========================================================================
   01. PRODUCT LISTING ITEM
   ========================================================================== */

.anelco-module-product {
    width: 100%;
    height: 100%;
    padding-bottom: 20px;
}

.anelco-module-product__box {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--anelco-border);
    border-radius: 0px;
    background: var(--anelco-white);
    transition:
        border-color 0.35s ease,
        transform 0.35s ease;
}


/* Product Image
   -------------------------------------------------------------------------- */

.anelco-module-product__visual {
    position: relative;
    display: block;
    width: 100%;
    height: 266px;
    overflow: hidden;
    background: #efeff1;
}

.anelco-module-product__visual img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain;
    object-position: center;
    transition: transform 0.65s cubic-bezier(.2, .7, .2, 1);
}

.anelco-module-product__image-line {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    width: 65px;
    height: 3px;
    background: var(--anelco-red);
    transition: width 0.4s ease;
}


/* Product Content
   -------------------------------------------------------------------------- */

.anelco-module-product__content {
    position: relative;
    z-index: 3;
    min-height: 175px;
    padding: 24px 25px 27px;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            #f8f9fb 0%,
            #f2f4f7 100%
        );
}

.anelco-module-product__content::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 55%;
    height: 65%;
    opacity: 0.025;
    background:
        repeating-linear-gradient(
            0deg,
            var(--anelco-blue) 0,
            var(--anelco-blue) 1px,
            transparent 1px,
            transparent 10px
        );
    transform: skewY(-7deg);
    pointer-events: none;
}

.anelco-module-product__label {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 8px;
    color: #989faa;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.3px;
    direction: ltr;
    text-align: right;
}

.anelco-module-product__info {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.anelco-module-product__title {
    min-width: 0;
    margin: 0;
    color: var(--anelco-blue);
    font-size: clamp(15px, 1.15vw, 18px);
    font-weight: 800;
    line-height: 1.8;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.3s ease;
    font-family: 'Modam-bold';
}


/*
   Arrow is intentionally hidden in the current listing design.
   Keeping only this rule avoids the previous display:flex / display:none conflict.
*/
.anelco-module-product__arrow {
    display: none;
}

.anelco-module-product__link {
    position: relative;
    z-index: 5;
    display: inline-block;
    margin-top: 16px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--anelco-red);
    color: var(--anelco-text);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.anelco-module-product__link:visited {
    color: var(--anelco-text);
}

.anelco-module-product__full-link {
    position: absolute;
    z-index: 4;
    inset: 0;
}


/* Listing Hover
   -------------------------------------------------------------------------- */

.anelco-module-product__box:hover {
    border-color: #d8dde4;
}

.anelco-module-product__box:hover .anelco-module-product__visual img {
    transform: scale(1.045);
}

.anelco-module-product__box:hover .anelco-module-product__image-line {
    width: 100%;
}

.anelco-module-product__box:hover .anelco-module-product__title {
    color: var(--anelco-blue-dark);
}

.anelco-module-product__box:hover .anelco-module-product__link {
    color: var(--anelco-blue);
}


/* Listing Row
   -------------------------------------------------------------------------- */

.anelco-products-module-row {
    row-gap: 28px;
}


/* ==========================================================================
   02. PRODUCT DETAIL VIEW
   ========================================================================== */

.anelco-product-view {
    position: relative;
    overflow: hidden;
    background: var(--anelco-white);
    color: var(--anelco-dark);
}

.anelco-product-view *,
.anelco-product-view *::before,
.anelco-product-view *::after {
    box-sizing: border-box;
}

.apv-container {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}


/* ==========================================================================
   03. HERO
   ========================================================================== */

.apv-hero {
    position: relative;
    padding: 105px 0 40px;
    overflow: hidden;
}

.apv-pattern {
    position: absolute;
    top: 20px;
    right: -170px;
    width: 500px;
    height: 500px;
    opacity: 0.045;
    background:
        repeating-radial-gradient(
            ellipse at center,
            transparent 0,
            transparent 8px,
            var(--anelco-blue) 9px,
            transparent 10px
        );
    pointer-events: none;
}

.apv-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
    gap: clamp(55px, 7vw, 105px);
    align-items: stretch;
}


/* Hero Product Image
   -------------------------------------------------------------------------- */

.apv-media {
    position: relative;
}

.apv-media::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -22px;
    right: -22px;
    width: 58%;
    height: 58%;
    border-top: 1px solid rgba(6, 66, 158, 0.18);
    border-right: 1px solid rgba(6, 66, 158, 0.18);
}

.apv-media::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -24px;
    bottom: -24px;
    width: 42%;
    height: 42%;
    background:
        linear-gradient(
            135deg,
            rgba(6, 66, 158, 0.06),
            transparent
        );
}

.apv-media-frame {
    position: relative;
    height: 500px;
    overflow: hidden;
    border: 1px solid var(--anelco-border);
    border-radius: 5px;
    background: #f4f5f7;
}

.apv-image,
.apv-image > img,
.apv-image img {
    width: 100%;
    height: 100%;
}

.apv-image img {
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}

.apv-media:hover .apv-image img {
    transform: scale(1.025);
}

.apv-image--empty img {
    object-fit: contain;
    padding: 50px;
}

.apv-line {
    position: absolute;
    z-index: 4;
    width: 88px;
    height: 3px;
    background: var(--anelco-red);
}

.apv-line--top {
    top: 0;
    right: 0;
}

.apv-line--bottom {
    bottom: 0;
    left: 0;
}


/* Hero Information Box
   -------------------------------------------------------------------------- */

.apv-intro {
    position: relative;
    min-height: 500px;
    padding: 42px 42px 38px;
    overflow: hidden;
    border: 1px solid var(--anelco-border);
    border-radius: 5px;
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f7f8fa 100%
        );
}

.apv-intro::before {
    content: "";
    position: absolute;
    top: 35px;
    right: -1px;
    width: 3px;
    height: 95px;
    background: var(--anelco-blue);
}

.apv-intro::after {
    content: "";
    position: absolute;
    left: -50px;
    bottom: -70px;
    width: 280px;
    height: 190px;
    opacity: 0.025;
    background:
        repeating-linear-gradient(
            -25deg,
            var(--anelco-blue) 0,
            var(--anelco-blue) 1px,
            transparent 1px,
            transparent 10px
        );
    pointer-events: none;
}

.apv-number {
    position: absolute;
    top: 10px;
    left: 0;
    color: transparent;
    font-size: clamp(66px, 6vw, 90px);
    font-weight: 800;
    line-height: 1;
    -webkit-text-stroke: 1px rgba(6, 66, 158, 0.12);
    pointer-events: none;
}

.apv-eyebrow {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 10px;

    color: var(--anelco-red);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.7px;
    direction: ltr;
    text-align: right;
}

.apv-subtitle {
    position: relative;
    z-index: 2;
    margin-bottom: 9px;
    color: var(--anelco-muted);
    font-size: 12px;
    line-height: 1.9;
}

.apv-title {
    position: relative;
    z-index: 2;
}

.apv-title h1 {
    margin: 0;
    color: var(--anelco-blue);
    font-size: clamp(31px, 3.4vw, 35px);
    font-weight: 800;
    line-height: 1.45;
    font-family: 'Modam-bold';
}

.apv-title em,
.apv-title .fa {
    display: none;
}

.apv-accent {
    position: relative;
    z-index: 2;
    display: block;
    width: 54px;
    height: 3px;
    margin: 18px 0 27px;
    background: var(--anelco-red);
    display: none;
}

.apv-heading p {
    padding-top: 15px;
}

.apv-summary {
    position: relative;
    z-index: 2;
    max-width: 560px;
    color: var(--anelco-text);
    font-size: 14px;
    line-height: 2.15;
    text-align: justify;
    padding-top: 15px;
}

.apv-actions {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 23px;
}

.apv-action {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--anelco-border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--anelco-text);
    font-size: 10px;
    text-decoration: none;
    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}

.apv-action:visited {
    color: var(--anelco-text);
}

.apv-action:hover {
    border-color: var(--anelco-blue);
    background: var(--anelco-blue);
    color: var(--anelco-white);
    transform: translateY(-1px);
}


/* ==========================================================================
   04. CONTENT SECTIONS
   ========================================================================== */

.apv-section {
    position: relative;
    padding: 50px 0;
}

.apv-section--soft {
    background: var(--anelco-soft);
}


/* Section Heading
   -------------------------------------------------------------------------- */

.apv-heading {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 25px;
    padding: 22px 25px;
    border: 1px solid var(--anelco-border);
    border-right: 3px solid var(--anelco-blue);
    border-radius: 5px;
    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            rgba(6, 66, 158, 0.035) 100%
        );
}

.apv-heading-number {
    flex: 0 0 auto;
    color: transparent;
    font-size: 58px;
    font-weight: 800;
    line-height: 1;
    -webkit-text-stroke: 1px rgba(6, 66, 158, 0.13);
}

.apv-heading-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--anelco-muted);
    font-size: 9px;
    letter-spacing: 1.6px;
    direction: ltr;
    text-align: right;
}

.apv-heading h2 {
    margin: 0;
    color: var(--anelco-blue);
    font-size: clamp(25px, 2.5vw, 35px);
    font-weight: 800;
    line-height: 1.5;
    font-family: 'Modam-bold';
}

.apv-heading-line {
    display: block;
    width: 46px;
    height: 2px;
    
    background: var(--anelco-red);
    display: none;
}

ul.ImagesItem {
    margin-top: 15px;
}

/* Main Product Content
   No extra HTML wrapper is required.
   The existing .apv-page-text itself acts as the content card.
   -------------------------------------------------------------------------- */

.apv-page-text {
    position: relative;
    padding: clamp(30px, 4vw, 55px);
    overflow: hidden;
    border: 1px solid var(--anelco-border);
    border-radius: 5px;
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fafbfc 100%
        );
    color: var(--anelco-text);
    font-size: 14px;
    line-height: 2.2;
    text-align: justify;
}

.apv-page-text::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 110px;
    height: 3px;
    background: var(--anelco-red);
}

.apv-page-text::after {
    content: "";
    position: absolute;
    left: -70px;
    bottom: -80px;
    width: 330px;
    height: 220px;
    opacity: 0.025;
    background:
        repeating-linear-gradient(
            -20deg,
            var(--anelco-blue) 0,
            var(--anelco-blue) 1px,
            transparent 1px,
            transparent 11px
        );
    pointer-events: none;
}

.apv-page-text > * {
    position: relative;
    z-index: 1;
}

.apv-page-text p {
    margin: 0 0 22px;
}

.apv-page-text p:last-child {
    margin-bottom: 0;
}

.apv-page-text h2,
.apv-page-text h3,
.apv-page-text h4 {
    margin: 36px 0 18px;
    color: var(--anelco-blue);
    font-weight: 800;
    line-height: 1.6;
}

.apv-page-text h2:first-child,
.apv-page-text h3:first-child,
.apv-page-text h4:first-child {
    margin-top: 0;
}

.apv-page-text h2 {
    font-size: 27px;
}

.apv-page-text h3 {
    font-size: 21px;
}

.apv-page-text h4 {
    font-size: 17px;
}

.apv-page-text ul,
.apv-page-text ol {
    margin: 20px 0;
    padding-right: 22px;
}

.apv-page-text li {
    margin-bottom: 10px;
}


/* Product Technical Tables
   -------------------------------------------------------------------------- */

.apv-page-text table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    border: 1px solid var(--anelco-border);
    background: var(--anelco-white);
}

.apv-page-text th,
.apv-page-text td {
    padding: 14px 16px;
    border: 1px solid var(--anelco-border);
    text-align: center;
    vertical-align: middle;
}

.apv-page-text th {
    background: var(--anelco-blue);
    color: var(--anelco-white);
    font-size: 12px;
    font-weight: 700;
}

.apv-page-text td {
    color: var(--anelco-text);
    font-size: 12px;
}


/* ==========================================================================
   05. REFERENCE / TAGS / PAGING
   ========================================================================== */

.apv-compact {
    padding: 12px 0;
}

.apv-reference,
.apv-tags,
.apv-paging {
    min-height: 70px;
    padding: 16px 20px;
    border: 1px solid var(--anelco-border);
    border-radius: 5px;
    background:
        linear-gradient(
            145deg,
            var(--anelco-white),
            var(--anelco-soft)
        );
}

.apv-reference,
.apv-tags {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.apv-reference > div span {
    display: block;
    margin-bottom: 4px;
    color: var(--anelco-muted);
    font-size: 9px;
    letter-spacing: 1.2px;
    direction: ltr;
}

.apv-reference > div strong {
    color: var(--anelco-blue);
    font-size: 14px;
}

.apv-reference > a {
    min-height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--anelco-red);
    background: var(--anelco-red);
    color: var(--anelco-white);
    font-size: 10px;
    text-decoration: none;
    transition:
        color 0.3s ease,
        background-color 0.3s ease;
}

.apv-reference > a:visited {
    color: var(--anelco-white);
}

.apv-reference > a:hover {
    background: transparent;
    color: var(--anelco-red);
}

.apv-tags > strong {
    flex: 0 0 auto;
    color: var(--anelco-blue);
    font-size: 12px;
}

.apv-tags .tag-item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.apv-tags .tag-item a {
    padding: 7px 11px;
    border: 1px solid var(--anelco-border);
    background: var(--anelco-white);
    color: var(--anelco-text);
    font-size: 10px;
    text-decoration: none;
    transition:
        color 0.3s ease,
        border-color 0.3s ease;
}

.apv-tags .tag-item a:visited {
    color: var(--anelco-text);
}

.apv-tags .tag-item a:hover {
    border-color: var(--anelco-red);
    color: var(--anelco-red);
}

.apv-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--anelco-text);
    font-size: 11px;
}


/* ==========================================================================
   06. PRODUCT GALLERY
   ========================================================================== */

.apv-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.apv-gallery > * {
    position: relative;
    padding: 8px;
    overflow: hidden;
    border: 1px solid var(--anelco-border);
    border-radius: 5px;
    background: var(--anelco-white);
}

.apv-gallery img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.apv-gallery > *:hover img {
    transform: scale(1.035);
}


/* ==========================================================================
   07. ATTACHED FILES
   ========================================================================== */

.apv-files {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.apv-files a {
    position: relative;
    min-height: 72px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--anelco-border);
    border-radius: 5px;
    background:
        linear-gradient(
            145deg,
            var(--anelco-white),
            var(--anelco-soft)
        );
    color: var(--anelco-blue);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition:
        border-color 0.3s ease,
        transform 0.3s ease;
}

.apv-files a::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: var(--anelco-red);
}

.apv-files a:visited {
    color: var(--anelco-blue);
}

.apv-files a:hover {
    border-color: rgba(6, 66, 158, 0.35);
    transform: translateY(-2px);
}


/* ==========================================================================
   08. RELATED PRODUCTS
   ========================================================================== */

.apv-related {
    position: relative;
}

.apv-related .row {
    row-gap: 28px;
}


/* ==========================================================================
   09. BACK BUTTON
   ========================================================================== */

.apv-back {
    padding: 25px 0 60px;
    text-align: center;
}

.apv-back a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 0 5px;
    /* border-bottom: 1px solid var(--anelco-red); */
    color: #ffffff;
    font-size: 11px;
    border-radius: 65px;
    padding: 10px 17px;
    background: var(--anelco-red);
    font-weight: 700;
    text-decoration: none;
    transition:
        color 0.3s ease,
        gap 0.3s ease;
}

.apv-back a:visited {
    color: #ffffff;
}

.apv-back a:hover {
    gap: 13px;
    color: var(--anelco-red);
    background: white;
    border: 1px solid var(--anelco-red);
    transition: 0.5s;
}


/* ==========================================================================
   10. TABLET
   ========================================================================== */

@media (max-width: 991px) {

    /* Listing */
    .anelco-module-product__visual {
        height: 190px;
    }

    .anelco-module-product__content {
        min-height: 165px;
        padding: 22px 20px 24px;
    }

    .anelco-module-product__title {
        font-size: 15px;
    }


    /* Product View */
    .apv-hero {
        padding: 70px 0 40px;
    }

    .apv-hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .apv-media-frame {
        height: 430px;
    }

    .apv-intro {
        min-height: auto;
    }

    .apv-section {
        padding: 45px 0;
    }

    .apv-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================================================
   11. MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    /* Listing */
    .anelco-module-product__visual {
        height: 230px;
    }

    .anelco-module-product__content {
        min-height: auto;
        padding: 23px 22px 26px;
    }

    .anelco-module-product__title {
        font-size: 17px;
    }


    /* Product View */
    .apv-container {
        width: min(100% - 30px, 1180px);
    }

    .apv-hero {
        padding: 55px 0 30px;
    }

    .apv-hero-grid {
        gap: 28px;
    }

    .apv-media::before,
    .apv-media::after {
        display: none;
    }

    .apv-media-frame {
        height: 300px;
    }

    .apv-intro {
        padding: 30px 24px 28px;
    }

    .apv-intro::before {
        top: 28px;
        height: 80px;
    }

    .apv-number {
        font-size: 54px;
    }

    .apv-title h1 {
        padding-right: 10px;
        font-size: 29px;
    }

    .apv-eyebrow {
        padding-right: 10px;
    }

    .apv-summary {
        font-size: 13px;
        line-height: 2.05;
        text-align: right;
    }

    .apv-section {
        padding: 35px 0;
    }

    .apv-heading {
        gap: 15px;
        margin-bottom: 20px;
        padding: 18px 18px;
    }

    .apv-heading-number {
        font-size: 46px;
    }

    .apv-heading h2 {
        font-size: 23px;
    }

    .apv-page-text {
        padding: 25px 20px;
        overflow-x: auto;
        font-size: 13px;
        line-height: 2.05;
    }

    .apv-page-text table {
        min-width: 620px;
    }

    .apv-reference,
    .apv-tags {
        align-items: flex-start;
        flex-direction: column;
    }

    .apv-paging {
        flex-wrap: wrap;
    }

    .apv-gallery {
        grid-template-columns: 1fr;
    }

    .apv-gallery img {
        height: 230px;
    }

    .apv-files {
        grid-template-columns: 1fr;
    }

    .apv-back {
        padding: 20px 0 45px;
    }
}